package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-07-27
 * Time: 9:59
 */
public class test2 {

    public static void main(String[] args) {
        Thread t = new Thread(){
            @Override
            public void run() {//准备任务
                System.out.println("我是Thread!!!");
            }
        };
        t.start();//创建线程
        System.out.println("我是main!!!");
    }

}
